package test.util;

import util.Configuration;


/**
 * A class that extends the real Configuration, with some methods that allows
 * manipulation of the configuration settings. Normally this is done directly
 * in the XML-file.
 * 
 * This class should only be used for testing
 * 
 * @author team07
 * 
 */
public class ConfigurationEditable extends Configuration {



	/**
	 * Sets the specified configuration value
	 * 
	 * @param key
	 *            The configuration key
	 * @param value
	 *            The value to set the specified configuration to
	 */
	public static void set(String key, String value) {
		configuration.setProperty(key, value);
	}
	
	/**
	 * Clears the whole configuration.
	 * 
	 * Use this in the tear down after a test.
	 */
	public static void clear(){
		configuration.clear();
	}
}
